package com.entity;

import java.util.ArrayList;
import java.util.List;

public class Product {
	private int id;
	private String pname;
	private double price;
	private int stock;
	private String comments;
	private int kind;
	private String kindName;
	private String uid;
	private String procover;
	private List<ProImg> imgs=new ArrayList<ProImg>();
	
	public String getProcover() {
		return procover;
	}
	public void setProcover(String procover) {
		this.procover = procover;
	}
	public List<ProImg> getImgs() {
		return imgs;
	}
	public void setImgs(List<ProImg> imgs) {
		this.imgs = imgs;
	}
	public String getUid() {
		return uid;
	}
	public void setUid(String uid) {
		this.uid = uid;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getPname() {
		return pname;
	}
	public void setPname(String pname) {
		this.pname = pname;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public int getStock() {
		return stock;
	}
	public void setStock(int stock) {
		this.stock = stock;
	}
	public String getComments() {
		return comments;
	}
	public void setComments(String comments) {
		this.comments = comments;
	}
	public int getKind() {
		return kind;
	}
	public void setKind(int kind) {
		this.kind = kind;
	}
	public String getKindName() {
		return kindName;
	}
	public void setKindName(String kindName) {
		this.kindName = kindName;
	}
	@Override
	public boolean equals(Object obj) {
		Product p=(Product) obj;
		if(this.getId()==p.getId()){
			return true;
		}else{
			return false;
		}
	}
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return this.getId()+"-"+this.getPname()+"-"+this.getPrice()+"-"+this.getProcover();
	}
}
